package models

//UserInfo 用户信息表
type UserInfo struct {
	ID      int64  `json:"id" xorm:"'id' pk autoincr BIGINT(20)"`
	UserID  int64  `json:"user_id" xorm:"index 'user_id' BIGINT(20)"`  //索引
	Key     string `json:"key" xorm:"'key' VARCHAR(256)"`
	Value   string `json:"value" xorm:"'value' text"`
	Created Time   `json:"created" xorm:"'created' TIMESTAMP created DEFAULT CURRENT_TIMESTAMP"`
	Updated Time   `json:"updated" xorm:"'updated' TIMESTAMP updated DEFAULT CURRENT_TIMESTAMP"`
	Version int64  `json:"version" xorm:"'version' BIGINT(20) version"`
}



type UserGroup struct {
	User `xorm:"extends"`
	UserInfo `xorm:"extends"`
}
func (UserGroup) TableName() string {
	return "user"
}
